package com.camus.verify.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

import com.camus.verify.biz.VerifyTaskBiz;
import com.camus.verify.entity.VerifyTask;

@Component
public class VerifyTaskCreatedEventListener {

	@Autowired
	private VerifyTaskBiz verifyTaskBiz;

	@EventListener
	public void handleVerifyTaskCreatedEvent(VerifyTask task) {
		verifyTaskBiz.excuteVerifyTask(task.getTaskCode());
	}

}
